package com.ygl.strategy.sentinel.opentracing.func;

import com.alibaba.csp.sentinel.init.InitFunc;
import com.alibaba.csp.sentinel.slots.statistic.StatisticSlotCallbackRegistry;
import com.ygl.strategy.sentinel.opentracing.callback.SentinelOpenTracingProcessorSlotEntryCallback;

/**
 * @Author yanggld
 * @Date 2020/1/12-20:05
 * @Description
 */
public class SentinelOpenTracingInitFunc implements InitFunc {
	@Override
	public void init() throws Exception {
		StatisticSlotCallbackRegistry.addEntryCallback(SentinelOpenTracingProcessorSlotEntryCallback.class.getName(), new SentinelOpenTracingProcessorSlotEntryCallback());
	}
}